﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace WDTVMetadata
{
    public static class Helper
    {
        public static string[] extensionsCommaseperatedToHashtable(string extensionsCommaSeperated)
        {
            string extensionsLower = extensionsCommaSeperated.ToLowerInvariant();
            string[] extensions = extensionsLower.Split(',');
            List<string> extensionList = new List<string>();
            foreach (string extension in extensions)
            {
                string extensionTrimmed = extension.Trim();
                extensionList.Add(extensionTrimmed);
            }
            return extensionList.ToArray();
        }
    }
}
